Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check only day level equality for selected date #676

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Sep 25, 2023

The date gets set back when I try to change the date for Plume datasets: https://ghg-demo.netlify.app/data-catalog/emit-ch4plume-v1/explore?projection=mercator%7C%7C&basemapid=satellite&datetime=2023-07-29T10%3A06%3A30.000Z

This is because when a user inputs the date, the code checks if the date is in datetime list of the collection. Since Dashboard only provides daily level selection, selected datetime gets rounded down to the midnight of the selected date. Plume data datetimes don't have 00:00 timestamps, the selected date gets invalidated. I changed the code to check only day-level equality to align with dashboard capacity.

@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 64a81aa
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/6511f6354d2ded0009f16faf
😎 Deploy Preview https://deploy-preview-676--veda-ui.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hanbyul-here hanbyul-here requested a review from nerik September 25, 2023 21:06
@hanbyul-here
Copy link
Collaborator Author

hanbyul-here commented Sep 25, 2023

We are disabling the plume dataset on ghg, : US-GHG-Center/veda-config-ghg#148 this fix doesn't seem to be needed :[

@hanbyul-here hanbyul-here deleted the fix/selected-date-validation branch September 25, 2023 21:24
@hanbyul-here hanbyul-here restored the fix/selected-date-validation branch September 26, 2023 12:12
@hanbyul-here hanbyul-here reopened this Sep 26, 2023
Copy link
Contributor

@nerik nerik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
(should this be merged into ghg?)

@hanbyul-here hanbyul-here changed the base branch from main to ghg October 5, 2023 14:43
@hanbyul-here
Copy link
Collaborator Author

Yeah, I will make all the changes to ghg now so we can think of what to do altogether later.

@hanbyul-here hanbyul-here merged commit dbb3e22 into ghg Oct 5, 2023
11 checks passed
@hanbyul-here hanbyul-here deleted the fix/selected-date-validation branch October 5, 2023 17:07
hanbyul-here added a commit that referenced this pull request Oct 12, 2023
## This PR, merged to `ghg`

### Features

- Analysis define
  - New step-by-step layout and various UI tweaks
  - Added sticky footer, moved submit and cancel buttons there
  - Added an AoI preset for North America
- Datasets are not filtered from `/collections` metadata (spatial,
temporal extent)
  - Dates are now set by default to 2018 - 2022
  - Replaced date presets with "2018 - 2022" and "last 10 years"
  - Date selection not possible anymore before 01-01-1980
- Prevent users from selecting datasets when time range selected would
mean fetching too many STAC items
- Analysis results page: set a hardcoded limit on the number of items
that can be requested as a failsafe mechanism for ☝️

### Bugfixes

- Removed logs in production
(US-GHG-Center/veda-config-ghg#152)
- Temporary fix of critical error encoutered during demos
(#680)
- Remove Shadow Scroll as a preventative method for
(#691)
- Check only day level equity to validate dates
(#676)
- Remove unneded attributes
(#694)
- BlockMap initial position error
(#687)

### Copy changes
- [Updated define
copy](f1e7171)
- [Disclaimer on results
page](54cf01e)


--- 

## Other PRs, merged to `main`

### Added in veda UI but made configurable (so not affecting
veda-config):
- #673
- #665
- #664

### Bugfixes
- #672
- #670 /
#666
- #662
- #691
- #650
- #676
- #694
- #687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants